import sqlite3


if __name__ == "__main__":
    conn = sqlite3.connect('../cpswarehouse.db')

    c = conn.cursor()

    c.execute("""select unit, address, latitude, longitude from school_dimension where latitude is not null and longitude is not null""")

    for row in c:
        print '"%s", "%s", "%s", "%s"' % row

    c.close()
